-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: changed warn to error in ems for key/labels #1981
Conversation
Issuing Ems instancekey is: That's why changing order of |
pkg/util/util.go
Outdated
@@ -405,3 +406,12 @@ func HasDuplicates(slice []string) bool { | |||
|
|||
return false | |||
} | |||
|
|||
func GetSortedKeys(instanceKeyMap map[string]string) []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given its a util method. name of the var instanceKeyMap
could be generic. May be just m
is fine. You can als change templating.go in rest to use this method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already done the changes in rest/templating.go
Changes: